<div id="popbox-container"></div>
<footer class="footer" role="contentinfo">
    <div class="friendly-link">
        <span>友情链接:</span>
        <div class="link-href" style="line-height: 180%;padding-left: 5em">
            <a href="https://www.ind.nl/">荷兰王国移民局</a>
            <a href="https://www.holland.com/">荷兰旅游局</a>
            <a href="https://www.gobiernu.cw/">库拉索省移民局</a>
            <a href="https://www.curacao.com/en/">库拉索旅游局</a>
            <a href="https://www.uwv.nl/particulieren">荷兰社会保障局</a>
            <a href="https://www.netherlandsworldwide.nl/">荷兰驻华使团</a>
            <a href="https://www.acien.ni/">荷兰中资协会</a>
            <a href="https://www.ind.nl/">荷兰总务部</a>
            <a href="https://www.ind.nl/">荷兰工商局</a>
            <a href="https://www.ind.nl/">中国驻库拉索领事馆</a>
        </div>
    </div>
    <div class="hid-wx">
        <img src="{{ asset('images/weixin.png') }}">
    </div>
    <div class="copyright">
        <div class="wx" style="margin-bottom: 2em">
            <img src="{{ asset('images/weixin.png') }}">
        </div>
        <div class="footer-details">
            <a href="javascript:;">关于我们</a>
            <a href="javascript:;">联系我们</a>
            <b style="color:#fff">京公安网安备 11010502008968<a href="http://www.miibeian.gov.cn/" target="_blank" style="margin-left: .5em">京ICP备10214630</a></b>
        </div>

        <div class="copy" style="line-height: 1.5em"><b style="margin-right: .5em;color:#fff">京公安网安备 11010502008968</b><a href="http://www.miibeian.gov.cn/" target="_blank" style="display: inline-block">京ICP备10214630</a></div>
    </div>

    <div class="copyright-info">©   版权 2017 归荷兰外商投资局所有。保留所有权利</div>

    <div class="new-copyright" style="background: #717276;padding: 40px 0;text-align: center">
        @foreach($config_imm as $category)
        <div class="item">
            <span style="color: #fff;margin-bottom: 10px;">{{$category['name']}}</span>
            <ul>
                @foreach($category['category'] as $item)
                <li><a href="{{ url('details',['id'=>$item['id']]) }}">{{$item['name']}}</a></li>
                @endforeach
            </ul>
        </div>
        @endforeach
        <div class="item last-item">
            <span style="color: #fff;margin-bottom: 10px;">联系我们</span>
            <ul>
                <li><a href="javascript:;"><i class="iconfont icon-tel"></i><span>400-100-7698</span></a></li>
                <li><a href="javascript:;"><i class="iconfont icon-mail"></i><span>12233@svbenyuan.com</span></a></li>
                <li><a href="javascript:;"><i class="iconfont icon-icon-home1"></i><span>中国.北京市朝阳区建国门外大街1号国贸大厦三期B座23层</span></a></li>
            </ul>
        </div>
        <div class="item last-item">
                <ul>
                    <li style="margin-top: 0"><img src="{{ asset('images/weixin.png') }}"></li>
                </ul>
                <b style="color:#B1B2B4; font-size:12px;text-align: center;margin-top: 1em;display: block" >欢迎关注我们微信公众号</b>
            </div>
    </div>
    <div class="new-copyright-info" style="text-align: center;background: #5A5B5E;padding: 30px 0;font-size: 14px;color: #B1B2B4;">
        <p>Copyright ©
            <b>荷兰外商投资局</b>
            <b>版权所有</b>
            <b>京公安网安备11010502008968</b>
            <b>京ICP10214630</b>
        </p>
        <span style="margin-top: 10px;">
            <b style="display: inline-block;width: 30px;height: 30px;border: 2px solid #858687; font-weight:600; border-radius: 100px;line-height: 27px;text-align: center;"><i style="font-size: 20px" class="iconfont icon-home2"></i></b>
            <b style="display: inline-block;width: 30px;height: 30px;border: 2px solid #858687; font-weight:600; border-radius: 100px;line-height: 27px;text-align: center;"><i style="font-size: 20px" class="iconfont icon-top"></i></b>
        </span>
    </div>

</footer>
<script src="{{ asset('js/jquery-3.2.1.min.js') }}"></script>
<script src="{{ asset('js/jquery.pjax.js') }}"></script>
<script src="{{ asset('js/global.js') }}"></script>
<script type='text/javascript' src='{{ asset('static/jquery/jquery.js') }}'></script>
<script type='text/javascript' src='{{ asset('static/jquery/themes/scripts.min.js') }}'></script>
<script>
    $('.container .navbar-body li.contact').click(function(){
        popbox($('.pop-html').html());
    });

    var msg = "<?php echo !empty( session('msg')) ?  session('msg') : '';?>";
    if(msg){
        var _html = '<div style="padding: 60px;">'+ msg +'</div>';
        popbox(_html);
    }
    $('#popbox-container').on('click','.warning-btns a.btn-blue',function(){
        var obj = $(this);
        var name = $.trim(obj.closest('.warning-btns').siblings('.contact').find('input.name').val()),
            tel = obj.closest('.warning-btns').siblings('.contact').find('input.tel-phone').val(),
            content = $.trim(obj.closest('.warning-btns').siblings('.contact').find('textarea').val());
        $.ajax({
            type: 'post',
            url: '/submit',
            data: {'_token': $('input[name=_token]').val() ,'name':name,'tel':tel,'content':content,},
            dataType: 'json',
            beforeSend: function() {
                var regPhone = /^1[34578]\d{9}$/;
                if(name.length == 0){
                    obj.closest('.warning-btns').siblings('.contact').find('.tips.tips-name').show();
                    return false;
                }else{
                    obj.closest('.warning-btns').siblings('.contact').find('.tips.tips-name').hide();
                }
                if(!regPhone.test(tel)){
                    obj.closest('.warning-btns').siblings('.contact').find('.tips.tips-phone').show();
                    return false;
                }else{
                    obj.closest('.warning-btns').siblings('.contact').find('.tips.tips-phone').hide();
                }
                if(content.length == 0){
                    obj.closest('.warning-btns').siblings('.contact').find('.tips.tips-content').show();
                    return false;
                }else{
                    obj.closest('.warning-btns').siblings('.contact').find('.tips.tips-content').hide();
                }
            }
        }).done(function (response) {
            if (response.status) {
                popbox('<div style="padding: 60px;">感谢您的留言，我们会第一时间联系您!</div>');
            }
        });
    });

</script>

